
package tx.bj12320.model.enums;

import java.util.LinkedHashMap;

import cn.org.rapid_framework.lang.enums.EnumBase;
import cn.org.rapid_framework.lang.enums.EnumBaseUtils;

public enum ActivityEnum implements EnumBase<String>{
	bzcs(new String("bzcs"),"班长初审"),
	xtdbsh(new String("xtdbsh"),"协调督办审核"),
	zgzrsd(new String("zgzrsd"),"主管主任审定"),
	xtdbff(new String("xtdbff"),"协调督办分发"),
	xtdbgd(new String("xtdbgd"),"协调督办归档"),
	llycb(new String("llycb"),"联络员承办"),
	zgyldyp(new String("zgyldyp"),"主管院领导阅批"),
	dccl(new String("dccl"),"调查处理"),
	zgyldqf(new String("zgyldqf"),"主管院领导签发"),
	jgfk(new String("jgfk"),"结果反馈"),
	jllycb(new String("jllycb"),"局联络员承办"),
	jldyp(new String("jldyp"),"局领导阅批"),
	jllyff(new String("jllyff"),"局联络员分发"),
	jbmcb(new String("jbmcb"),"局部门承办"),
	jldqf(new String("jldqf"),"局领导签发"),
	jjgfk(new String("jjgfk"),"局结果反馈"),
	endevent1(new String("endevent1"),"结束")
	;

	private final String code;
	private final String desc;
	ActivityEnum(String code,String desc) {
		this.code = code;
		this.desc = desc;
	}

	public String getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}

	public static ActivityEnum getByCode(String code) {
		return EnumBaseUtils.getByCode(code, values());
	}

	public static ActivityEnum getRequiredByCode(String code) throws IllegalArgumentException {
		return EnumBaseUtils.getRequiredByCode(code, values());
	}

	@SuppressWarnings("unchecked")
	public static LinkedHashMap<String, String> toMap() {
	    return EnumBaseUtils.toMap(values());
	}
}
